<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=872660759419047&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<style type="text/css">
.replated ul{margin-left:0px;padding-left:0px}
.replated ul li{list-style:none}
</style>
<!-- right -->
<div class="col-md-9">            	
    <?php echo $this->load->view('breadcrumb', FALSE);?>
    <div class="title_article">
        <h3><i class="fa fa-file-text"></i> Bài viết</h3>
    </div>
    <div class="aricle_wp">
        <div class="box_blog box_blog_detail">
            <h3><a href="#"><?php echo $news_detail->title;?></a></h3>
            <p class="date_wp">Ngày đăng <?php echo date('d/m/Y',$news_detail->created);?>, có <?php echo 1+$news_detail->count_view?> lượt xem.</p>
            <?php echo html_entity_decode($news_detail->bodyhtml);?>
                        <?php if(!empty($tags)){?> 
				<div class='tags'>
                	<span class="title-tags">Tags:</span>
					<?php $i=0; foreach($tags as $item){?>
					<span class="item-tags"><?php echo ($i!=0)?', ':"";echo "<a href='".site_url("tin-tuc/tags/".$item->slug)."'>".$item->name."</a>";$i=1?></span>
					<?php }?>
                </div>
			<?php }?>
            <p style="border-top:1px solid #CCC; margin-top:20px; margin-bottom:10px"><h3><a>Bài viết khác</a></h3></p>
            <div class="replated">
            	<?php if($related_news){echo '<ul>';foreach($related_news as $item){?>
            		<li><p class="news_plusmanichi" style="margin-left:0px; padding-left:0px"><a href="<?php echo site_url(NEWS_DETAIL.$item->slug);?>" sl-processed="1"><i class="fa fa-newspaper-o"></i> <?php echo $item->title;?></a><span class="date_created" style="font-weight:normal"> <i>(<?php echo date("d/m/Y",$item->created)?>)</i> </span></p></li>
                <?php }echo '</ul><div class="clear"></div>';}?>
            </div>

            <p style="border-top:1px solid #CCC; margin-top:20px; margin-bottom:10px"><h3><a>Bình luận</a></h3></p>
            <div class="fb-comments" data-href="<?php echo site_url($this->uri->uri_string())?>" data-numposts="15" data-colorscheme="light" data-width="100%"></div>            
        </div>
    </div>
</div>